/**
 *
 */
package com.bootdo.lgs.ordertrace.service;

import com.bootdo.lgs.order.model.LgsOrder;
import com.bootdo.lgs.ordertrace.model.*;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description: wu
 * @Author: guoyouwei
 * @Date: 2019/4/26 23:48
 */
@Service
public interface OrderTraceService {
    OrderTrace getById(Long id);

    boolean modify(Map condition);

    boolean delete (Long id);

    List<LgsOrder> getUnCheckOrderTrace(UnCheckCondition condition);

    List getListFromRemote(String com, String num, Long orderId);

    List getListFromDb(OrderTraceQuery condition);

    boolean refreshOrderTrace(OrderTraceCondition condition);

    boolean deleteOrderTrace(Long orderId);

    boolean batchRefreshOrderTrace(List<LgsOrderStatusUpdate> lgsOrderStatusUpdateList, List<Long> orderIds, List<Map> condition);

    boolean batchUpdate(List<LgsOrderStatusUpdate> condition);

    boolean batchDelete(List<Long> orderIds);

    boolean saveOrderTrace(List<Map> condition);

}
